package com.macro.mall.tiny.modules.cms.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.macro.mall.tiny.modules.cms.model.CmsSubject;
import com.macro.mall.tiny.modules.cms.mapper.CmsSubjectMapper;
import com.macro.mall.tiny.modules.cms.service.CmsSubjectService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.Collections;
import java.util.List;

/**
 * <p>
 * 专题表 服务实现类
 * </p>
 *
 * @author macro
 * @since 2024-09-03
 */
@Service
public class CmsSubjectServiceImpl extends ServiceImpl<CmsSubjectMapper, CmsSubject> implements CmsSubjectService {

    @Override
    public List<CmsSubject> listAll() {
        QueryWrapper<CmsSubject> queryWrapper = new QueryWrapper<>();
        return list(queryWrapper);
    }
}
